package com.produce.common.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import com.produce.system.controller.LoginController;
/**
 * 访问路径的拦截   配置文件已注释掉     未用
 *
 */
public class AuthorityInterceptor extends HandlerInterceptorAdapter {
	private Logger logger = Logger.getLogger(LoginController.class);

	@Override
	public void postHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler,
			ModelAndView modelAndView) throws Exception {
		String path = request.getServletPath();
		logger.info("Request getServletPath"+path);
		System.out.println(path+"------------------");
	}
}
